package com.bxl.rpc.provider.server;

import com.bxl.netty.rpc.server.context.ServerContextImpl;
import com.bxl.rpc.api.IHello;
import com.bxl.rpc.api.IService;
import com.bxl.rpc.provider.filter.MyFilter;
import com.bxl.rpc.provider.impl.MyHello;
import com.bxl.rpc.provider.impl.MyService;

/**
 * <>
 *
 * @author baixl
 * @date 2021/3/10
 */
public class Provider {
    public static void main(String[] args) {
        ServerContextImpl context = new ServerContextImpl(5555);
        context.registerBean(IHello.class, new MyHello());
        context.registerBean(IService.class, new MyService());
        context.registerFilter(new MyFilter());
        context.init().start();
    }
}
